<!doctype html>
<html lang="en">
<head>
    <title>表单验证</title>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script>
        window.hdjs = {};
        window.hdjs.base = '/hdjs';
        window.hdjs.uploader = 'php/uploader.php?';
        window.hdjs.filesLists = 'php/filesLists.php?';
    </script>
    <script src="../dist/static/requirejs/require.js"></script>
    <script src="../dist/static/requirejs/config.js"></script>
</head>
<body style="padding: 50px;">
<h1>文件表单</h1>
<input type="file" name="thumbnail" class="filestyle form-control"
       data-iconName="glyphicon glyphicon-folder-open" data-buttonText="上传图片"/>
<script>
    require(['hdjs'])
</script>

<h1>列表框</h1>
<div>
    <select class="js-example-basic-single form-control" multiple="multiple">
        <option value="hdr">后盾人</option>
        <option value="hdphp">HDPHP</option>
        <option value="hdy">后盾云</option>
    </select>
</div>
<script>
    require(['hdjs'], function (hdjs) {
        $(".js-example-basic-single").select2({
            tags: true
        });
    })
</script>

<h1>复选框</h1>
<input type="checkbox" name="status" class="bootstrap-switch">
<script>
    require(['hdjs'],function(hdjs){
        $(".bootstrap-switch").bootstrapSwitch();
    })
</script>
</body>
</html>